home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / kdebase-bin.postrm < prev    next >
Encoding:
Text File  |  2007-05-02  |  1.2 KB  |  32 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installmenu
  4. if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
  5. # End automatically added section
  6. # Automatically added by dh_iconcache
  7. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  8. if [ "$1" = "remove" ] && \
  9.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  10.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  11.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  12.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  13.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  14.         # it's not important enough
  15.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  16.     else
  17.         # if the icon theme directory has no subdirs, we can remove the cache
  18.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  19.     fi
  20. fi
  21. # End automatically added section
  22. # Automatically added by dh_desktop
  23. if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
  24.     update-desktop-database -q
  25. fi
  26. # End automatically added section
  27. # Automatically added by dh_makeshlibs
  28. if [ "$1" = "remove" ]; then
  29.     ldconfig
  30. fi
  31. # End automatically added section
  32.